<?php
class ControllerModuleNewsletterHome extends Controller {
	public function index() {	
		$this->language->load('module/newsletter');
    	
		//$this->document->title = $this->language->get('heading_title');
		$this->data['template'] = $this->config->get('config_template');  
				
    	$this->data['heading_title'] = $this->language->get('heading_title');  
    	$this->data['text_success'] = $this->language->get('text_success'); 		
		$this->data['button_continue'] = $this->language->get('button_continue');
		$this->data['button_back'] = $this->language->get('button_back');

    	$this->data['action'] = HTTPS_SERVER . 'index.php?route=module/newsletter';		
		$this->data['continue'] = HTTPS_SERVER . 'index.php?route=common/home';
		$this->data['unsubscriber_url'] = HTTPS_SERVER . 'index.php?route=module/newsletter/unsubscriberMail'; 
		$this->data['subscriber_url'] = HTTPS_SERVER . 'index.php?route=module/newsletter/subscriberMail';
		
		$this->load->model('tool/seo_url');
		$this->data['newsletter_url'] = $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=newsletter/newsletter'); 
		
		$this->load->model('setting/tooltip'); 
		$this->data['newsletter_text'] = $this->model_setting_tooltip->getNewsletterText();

		$this->id = 'newsletter_home';
		
		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/newsletter_home.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/module/newsletter_home.tpl';
		} else {
			$this->template = 'default/template/module/newsletter_home.tpl';
		}
		
		$this->render();	
  	}
}
?>